package org.example.dao.entity.post;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;
import java.util.Objects;

/**
 * (PPost)实体类
 *
 * @author makejava
 * @since 2023-09-14 09:51:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PPost  {

    private Long id;
    
    private Date createTime = new Date();
    
    private Date updateTime = new Date();
    
    private String content;
    
    private Integer likeNum = 0;
    
    private Integer browseNum = 0;
    
    private Integer clickNum = 0;
    
    private Integer transmitNum = 0;
    
    private Long themeId;
    
    private Integer isValid = 1;
    
    private Integer isRecommend = 0;
    
    private Long userId;

    private Long active = 0L;

    public PPost(Long id, String content, Long themeId, Long userId) {
        this.id = id;
        this.content = content;
        this.themeId = themeId;
        this.userId = userId;
    }
}

